//mytime3 -- Time class with friends

#ifndef CHAPTER11_MYTIME3_H_
#define CHAPTER11_MYTIME3_H_
#include <iostream>

class Time_11_10
{
private:
	int hours;
	int minutes;
public:
	Time_11_10();
	Time_11_10(int h, int m = 0);
	void AddMin(int m);
	void AddHr(int h);
	void Reset(int h = 0, int m = 0);
	Time_11_10 operator+(const Time_11_10 &t) const;
	Time_11_10 operator-(const Time_11_10 &t) const;
	Time_11_10 operator*(double n) const;
	friend Time_11_10 operator*(double m, const Time_11_10 & t)
	{
		return t*m;		//inline definition
	}
	friend std::ostream & operator<<(std::ostream & os, const Time_11_10 & t);
};

#endif
